package com.oa.lms.apps.business.absence;

import java.util.List;
import java.util.Date;

import com.oa.lms.apps.entity.absence.AbsenceOrderValue;

public interface IAbsenceOrderService {

	public Integer add(String title,String reason,Date startTime,Date endTime,Integer totalHours,
			Integer categoryId,Integer userId);
	
	public void modify(Integer orderId,String title,String reason,Date startTime,Date endTime,Integer totalHours,
			Integer categoryId,Integer userId);
	
	public AbsenceOrderValue queryByOrderId(Integer orderId);
	
	public String cancelAbsenceOrder(Integer orderId);
	
	public Boolean nextCheck(Integer orderId);
	
	public void toFail(Integer orderId);
	
	public List<AbsenceOrderValue> queryAbsenceOrder(Integer categoryId,Integer userId,Integer status, Integer rows, Integer pageNo);
	
	public Integer queryAbsenceOrderByDate(Integer categoryId,Integer userId, String startTime, String endTime);
	
	public Integer queryAbsenceOrderByMonth(Integer categoryId,Integer userId, String month);

	public Integer getTotalPageNumber(Integer categoryId, Integer userId, Integer status, Integer rows);
}
